<?php
	class MailJob extends AppModel{
		var $name="MailJob";
		var $useTable="mail_job_mst";
		var $primaryKey = 'id';
	
	function saveMsg($from,$to,$subject,$contents,$cc="",$reply_to="")
	{
		$content=pg_escape_string($contents);
		
		$sql="insert into mail_job_mst (subject,contents,mail_from,mail_to,mail_cc,mail_reply_to) values ('".$subject."','".$content."','".$from."','".$to."','".$cc."','".$reply_to."' )";
		$this->query($sql);
	}
	
	
	}
?>